package com.simen.hellobytes.encode;

import java.io.IOException;

public class EncodeTest {

    public static void main(String[] args) throws IOException {
//        String str = "\u8ba9\u4ed6\u51fa\u6d77\u4e86";
//        String str = "\\u65e0\\u6548\\u7684sso_ticket";
        String str="登录接口验证信息：{\"errcode\":\"0\",\"errmsg\":\"\\u6210\\u529f\",\"uid\":\"17660905548264\",\"account\":\"sw\",\"name\":\"\\u53f2\\u5a01\",\"enName\":\"Moke\",\"gender\":\"0\",\"email\":\"1054185245@qq.com\",\"avatar\":\"5e61ba09ee9eac332e84b439\",\"pwd\":\"a18fec11992dec8af4c57acaba0b9909\",\"tel\":\"\",\"mobile\":\"+8615093137794\",\"status\":\"1\",\"deptData\":[{\"did\":\"0\",\"name\":\"\\u4e2d\\u56fd\\u4eba\\u5bff\\u80a1\\u4efd\\u6709\\u9650\\u516c\\u53f8\",\"desp\":\"\",\"order\":\"6\"}],\"roleId\":\"5\",\"staffId\":\"\",\"posData\":[{\"did\":\"0\",\"posId\":\"0\",\"order\":\"0\",\"posName\":\"\"}],\"cid\":\"17660905547425\",\"avatarUrl\":\"http:\\/\\/interface.91kook.cn:8989\\/uploads\\/image\\/20200306\\/37\\/371869c528eab44837aac7ba37589ced.jpeg\"}";
        String decode=UnicodeUtil.decode(str);
        System.out.println(decode);
        System.out.println(UnicodeUtil.encode(decode));

        char c=0x7e;
        System.out.println(c);
    }


}
